##class P1:
##    def foo(self):
##        print('called P1-foo')
##class P2:
##    def foo(self):
##        print('called P2-foo')
##    def bar(self):
##        print('called P2-bar')
##class C1(P1,P2):
##    pass
##class C2(P1,P2):
##    def bar(self):
##        print('called C2-bar')
##class GC(C1,C2):
##    pass
##gc=GC()
##gc.foo()
##gc.bar()
##    
##
##
####import math
####class Circle:
####    def __inif__(self,radius=5):
####        self.radius = radius
####    def getPerimeter(self):
####        return 2*math.pi*(self.radius**2)
####    def getArea(self):
####        return math.pi*self.radius*self.radius
####    
####circle1=Circle()
####circle2=Circle(10)
####
####print(circle1.radius,circle1. getPerimeter(),circle1. getArea())
####print(circle2.radius,circle2. getPerimeter(),circle2. getArea())
##
##
####import math
####
##### 定义一个圆形类
####class Circle:
####    def __init__(self, radius):
####        self.radius = radius
####    
####    # 计算圆的面积
####    def area(self):
####        return math.pi * (self.radius ** 2)
####    
####    # 计算圆的周长
####    def circumference(self):
####        return 2 * math.pi * self.radius
####
##### 创建两个圆形对象
####circle1 = Circle(5)
####circle2 = Circle(10)
####
##### 打印两个圆形的属性
####print("Circle 1 - Radius:", circle1.radius)
####print("Circle 1 - Area:", circle1.area())
####print("Circle 1 - Circumference:", circle1.circumference())
####
####print("Circle 2 - Radius:", circle2.radius)
####print("Circle 2 - Area:", circle2.area())
####print("Circle 2 - Circumference:", circle2.circumference())
####
##
##
####import math
####class  长方形:
####    def __init__(self,a,b):
####        self.a = a
####        self.b = b
####    def get周长(self):
####        return 2*(self.a + self.b)
####    def get面积(self):
####        return self.a*self.b
####r1 = 长方形(4,5)
####r2 = 长方形(3,6)
####
####print("长方形 1：")
####print("周长:",r1.get周长())
####print("面积:",r1.get面积())
####
####print("长方形 2：")
####print("周长:",r2.get周长())
####print("面积:",r2.get面积())
##
